<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of get_typeslist</title>
  <meta name="keywords" content="get_typeslist">
  <meta name="description" content="Auxiliary function">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2003 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../m2html.css">
</head>
<body>
<a name="_top"></a>
<!-- menu.html . -->
<h1>get_typeslist
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>Auxiliary function</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>function [types] = get_typeslist(plurality) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Auxiliary function

 [TYPES] = GET_TYPESLIST(PLURALITY)

 Returns a cell array of strings
 with the names of the main types


 Set PLURALITY to 'single' or 'plural'</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../matlabicon.gif)">
</ul>
This function is called by:
<ul style="list-style-image:url(../matlabicon.gif)">
<li><a href="get_number.html" class="code" title="function [objno] = get_number(subj,objtype,objname,varargin)">get_number</a>	Internal function - find the cell index of an object</li><li><a href="init_object.html" class="code" title="function [subj] = init_object(subj,objtype,new_objname);">init_object</a>	Add a new empty object</li><li><a href="remove_objfield.html" class="code" title="function [subj] = remove_objfield(subj,objtype,objname,fieldname)">remove_objfield</a>	Removes a field from the object</li><li><a href="summarize.html" class="code" title="function [] = summarize(subj,varargin)">summarize</a>	Prints info about the contents of the subj structure</li></ul>
<!-- crossreference -->


<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function [types] = get_typeslist(plurality)</a>
0002 
0003 <span class="comment">% Auxiliary function</span>
0004 <span class="comment">%</span>
0005 <span class="comment">% [TYPES] = GET_TYPESLIST(PLURALITY)</span>
0006 <span class="comment">%</span>
0007 <span class="comment">% Returns a cell array of strings</span>
0008 <span class="comment">% with the names of the main types</span>
0009 <span class="comment">%</span>
0010 <span class="comment">%</span>
0011 <span class="comment">% Set PLURALITY to 'single' or 'plural'</span>
0012 
0013 <span class="comment">% This is part of the Princeton MVPA toolbox, released under the</span>
0014 <span class="comment">% GPL. See http://www.csbmb.princeton.edu/mvpa for more</span>
0015 <span class="comment">% information.</span>
0016 
0017 
0018 <span class="keyword">switch</span>(plurality)
0019  
0020  <span class="keyword">case</span> <span class="string">'single'</span>
0021   types{1} = <span class="string">'pattern'</span>;
0022   types{2} = <span class="string">'regressors'</span>;
0023   types{3} = <span class="string">'selector'</span>;
0024   types{4} = <span class="string">'mask'</span>;
0025  
0026  <span class="keyword">case</span> <span class="string">'plural'</span>
0027   types{1} = <span class="string">'patterns'</span>;
0028   types{2} = <span class="string">'regressors'</span>;
0029   types{3} = <span class="string">'selectors'</span>;
0030   types{4} = <span class="string">'masks'</span>;
0031  
0032  <span class="keyword">otherwise</span>
0033   error(<span class="string">'Unknown plurality type'</span>);
0034 <span class="keyword">end</span>
0035 
0036</pre></div>
<hr><address>Generated on Tue 06-Sep-2005 22:11:31 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2003</address>
</body>
</html>